package com.yanyeori.framework.datasource.builder;

import com.yanyeori.framework.datasource.configprop.DataSourceConfigProps;
import com.yanyeori.framework.datasource.configprop.MultiDataSourceConfigProps;

import javax.sql.DataSource;

/**
 * 数据源构造器接口
 *
 * @author chenkuan 2021/4/16
 */
public interface DataSourceBuilder {

    DataSource build(DataSourceConfigProps props, MultiDataSourceConfigProps basicProps);

    Class<? extends DataSource> getType();
}
